package modules

import (
	"cld-quick-cli/controllers"
	"cld-quick-cli/router/middlewares"
	"github.com/gin-gonic/gin"
)

func CommunityRouter(router *gin.Engine) {
	communityRouter := router.Group("/community")
	communityRouter.Use(middlewares.JWTAuthMiddleware())
	communityRouter.GET("/list", controllers.GetAllCommunityList())
	communityRouter.GET("/:id", controllers.GetCommunityDetails())
}
